inverse by Gauss-Jordan method